<?php

/**
 * Created by PhpStorm.
 * User: WhiteBlue
 * Date: 15/3/2
 * Time: 下午3:54
 */
use core\main\controller;

class indexController extends controller
{

    public function index()
    {
        $this->setAttr('msg', 'POI~');
        //设置参数
        $this->render('hello');
        //加载视图
    }

    //例子
    public function test1()
    {
        $this->redirect('abc.whiteblue.xyz/wordpress');
    }

    public function test2(){
        $this->redirect_local('index/test1');
    }
}

